libxl: update vcpus bitmap in retrieved guest config
authorWei Liu <wei.liu2@citrix.com>
Fri, 3 Jun 2016 15:38:32 +0000 (16:38 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 12 Jul 2016 11:49:41 +0000 (12:49 +0100)
commit01f3193e2e3b9b36bde027f909db496f7211c320
tree6a7d3c7c6530a190a87bfa54021e7f84f3f67ab4
parent324bd8f5dce20d0a1dbbd9480f89673a18e1db53
libxl: update vcpus bitmap in retrieved guest config

... because the available vcpu bitmap can change during domain life time
due to cpu hotplug and unplug.

For QEMU upstream, we interrogate QEMU for the number of vcpus. For
others, we look directly into xenstore for information.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c